﻿using System;

namespace WWLauncher.Constant
{
    internal class RunTimeStatus
    {

        /// <summary>
        /// 查询框是否在工作
        /// </summary>
        public static bool SearchBoxShow { get; set; }

        /// <summary>
        /// 查询框是否已经关闭了300毫秒   防止点击右侧区域关闭查询框时误打开列表
        /// </summary>
        public static bool SearchBoxHided300 { get; set; } = true;




        /// <summary>
        /// 是否锁定主面板 锁定后 不执行隐藏动作
        /// </summary>
        public static bool LockAppPanel { get; set; }



        /// <summary>
        /// 是否弹出了菜单密码框
        /// </summary>
        public static bool ShowMenuPasswordbox { get; set; }

        /// <summary>
        /// 是否弹出了右键菜单
        /// </summary>
        public static bool ShowRightBtnMenu { get; set; }

        /// <summary>
        /// 是否点击了面板功能按钮
        /// </summary>
        public static bool AppBtnIsDown { get; set; }

        /// <summary>
        /// 是否正在编辑菜单
        /// </summary>
        public static bool IsMenuEdit { get; set; }


        /// <summary>
        /// 图标card 鼠标滚轮是否正在工作  
        /// 用来控制popup的显示 否则低性能机器会造成卡顿
        /// </summary>
        public static bool IconlistMouseWheel { get; set; }
        /// <summary>
        /// 控制多少毫秒后 关闭(ICONLIST_MOUSE_WHEEL)鼠标滚轮运行状态
        /// </summary>
        public static int MouseWheelWaitMs = 100;
        /// <summary>
        /// 与关闭popup 配合使用, 避免线程结束后不显示popup
        /// </summary>
        public static bool MouseEnterIcon { get; set; }
        /// <summary>
        /// 控制每次刷新搜索结果 鼠标移动后显示popup
        /// </summary>
        public static int MouseMoveCount = 0;


        /// <summary>
        /// 控制主界面热键按下规定时间内只执行一次show hide
        /// </summary>
        public static bool MainHotKeyDown { get; set; }
        /// <summary>
        /// 控制主界面热键按下规定时间内只执行一次show hide
        /// </summary>
        public static volatile int MainHotKeyTime = 300;
        /// <summary>
        /// 软件的窗体window正在打开
        /// </summary>
        internal static bool WpfWindowOpening = false;
        /// <summary>
        /// 点击了打开window的菜单
        /// </summary>
        internal static bool WpfWindowClick = false;
    }
}
